﻿using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;

namespace WebApi.Sample.Controllers.v2;

[ApiController]
[ApiVersion("2.0")]
[Route("api/v{version:apiVersion}/[controller]")]
public class StringListController : ControllerBase
{
	[HttpGet("Get")]
    public IEnumerable<string> Get()
    {
        return Data.Summaries.Where(x => x.StartsWith("S"));
    }
}
